package com.ruoyi.supplier.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * 供应商个人信息表
 * @TableName gys_gr
 */
@TableName(value ="gys_gr")
public class GysGr implements Serializable {
    /**
     * 供应商ID
     */
    @TableId
    private Long id;

    /**
     * 关联供应商主表ID
     */
    private Long publicId;

    /**
     * 籍贯
     */
    private String nativePlace;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 无犯罪记录证明，身份证
     */
    private String recordUrls;

    /**
     * 紧急联系人姓名
     */
    private String emergencyContactName;

    /**
     * 紧急联系人电话号码
     */
    private String emergencyContactPhone;

    /**
     * 帐号状态（0正常 1停用）
     */
    private String status;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;


    @TableField(fill = FieldFill.INSERT)
    private Date createTime; // 创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime; // 更新时间

    @TableField(fill = FieldFill.INSERT)
    private String createBy; // 创建人

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy; // 更新人
    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 供应商ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 供应商ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 关联供应商主表ID
     */
    public Long getPublicId() {
        return publicId;
    }

    /**
     * 关联供应商主表ID
     */
    public void setPublicId(Long publicId) {
        this.publicId = publicId;
    }

    /**
     * 籍贯
     */
    public String getNativePlace() {
        return nativePlace;
    }

    /**
     * 籍贯
     */
    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    /**
     * 手机号码
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 手机号码
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 无犯罪记录证明，身份证
     */
    public String getRecordUrls() {
        return recordUrls;
    }

    /**
     * 无犯罪记录证明，身份证
     */
    public void setRecordUrls(String recordUrls) {
        this.recordUrls = recordUrls;
    }

    /**
     * 紧急联系人姓名
     */
    public String getEmergencyContactName() {
        return emergencyContactName;
    }

    /**
     * 紧急联系人姓名
     */
    public void setEmergencyContactName(String emergencyContactName) {
        this.emergencyContactName = emergencyContactName;
    }

    /**
     * 紧急联系人电话号码
     */
    public String getEmergencyContactPhone() {
        return emergencyContactPhone;
    }

    /**
     * 紧急联系人电话号码
     */
    public void setEmergencyContactPhone(String emergencyContactPhone) {
        this.emergencyContactPhone = emergencyContactPhone;
    }

    /**
     * 帐号状态（0正常 1停用）
     */
    public String getStatus() {
        return status;
    }

    /**
     * 帐号状态（0正常 1停用）
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    public String getDelFlag() {
        return delFlag;
    }

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    /**
     * 创建者
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建者
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 更新者
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新者
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GysGr other = (GysGr) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPublicId() == null ? other.getPublicId() == null : this.getPublicId().equals(other.getPublicId()))
            && (this.getNativePlace() == null ? other.getNativePlace() == null : this.getNativePlace().equals(other.getNativePlace()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getRecordUrls() == null ? other.getRecordUrls() == null : this.getRecordUrls().equals(other.getRecordUrls()))
            && (this.getEmergencyContactName() == null ? other.getEmergencyContactName() == null : this.getEmergencyContactName().equals(other.getEmergencyContactName()))
            && (this.getEmergencyContactPhone() == null ? other.getEmergencyContactPhone() == null : this.getEmergencyContactPhone().equals(other.getEmergencyContactPhone()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPublicId() == null) ? 0 : getPublicId().hashCode());
        result = prime * result + ((getNativePlace() == null) ? 0 : getNativePlace().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getRecordUrls() == null) ? 0 : getRecordUrls().hashCode());
        result = prime * result + ((getEmergencyContactName() == null) ? 0 : getEmergencyContactName().hashCode());
        result = prime * result + ((getEmergencyContactPhone() == null) ? 0 : getEmergencyContactPhone().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", publicId=").append(publicId);
        sb.append(", nativePlace=").append(nativePlace);
        sb.append(", phone=").append(phone);
        sb.append(", recordUrls=").append(recordUrls);
        sb.append(", emergencyContactName=").append(emergencyContactName);
        sb.append(", emergencyContactPhone=").append(emergencyContactPhone);
        sb.append(", status=").append(status);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}